package com.job.ZhangMeng.Homework0712;

//策略实现类1
public class OldTiger extends Tiger implements Attack{
    public void setInfo(String sp,String n,int a){
        this.species=sp;
        this.name=n;
        this.age=a;
    }
    public void getInfo(){
        System.out.println("品种:"+this.species+"\t昵称:"+this.name+"\t年龄"+this.age+"攻击方式:"+this.ac);
    }
    public void attack(){
        System.out.println(this.species+this.name+"的"+this.ac+"!");
    }
    public OldTiger(){}
    public OldTiger(String sp,String n,int a){
        this.species=sp;
        this.name=n;
        this.age=a;
        this.ac="恫吓";
    }
}
